#pragma once
#include "XRequest.h"

class XModem
{
private:
	
public:
XModem();
	~XModem();
	static XModem* Instance();
	void Reset();
	void OnChar();
	bool SendFile(const char* p);
private:
	int check(const unsigned char* p, int l);
	bool SendD(const char* p);
	bool SendF();
private:
	static XModem* m_pInstance;
	XRequest m_Request;
	int m_State;
};
